﻿@model List<LinqToTwitter.Search>
@if (Model != null)
{
    int maxTweets = 3;
    int index = 0;
    <ul>
        @foreach (var item in Model)
        {
            foreach (var entryItem in item.Entries)
            {
            <li>
                @if (entryItem.Image != string.Empty)
                {
                    <img src="@entryItem.Image" alt="@entryItem.Title" />
                }
                <h3>@entryItem.Author.Name</h3>
                <p>@Html.Raw(entryItem.Content)</p>
                <p>@entryItem.Updated.ToString()</p>
            </li>
              index += 1;
              if (index >= maxTweets)
              {
                  break;
              }
            }
            if (index > maxTweets)
            {
                break;
            }
        }
    </ul>
}
